package com.tanhua.manage.utils;

import com.tanhua.manage.pojo.User;

/**
 * @Author YuShiLong
 * @Date 2021/4/16 19:29
 * @Version 1.0
 */
public class UserThreadLocal {

    private static final ThreadLocal<User> LOCAL = new ThreadLocal<>();

    private UserThreadLocal(){

    }

    public static void set(User user){
        LOCAL.set(user);
    }

    public static User get(){
        return LOCAL.get();
    }

}
